import time
a=open('/home/student/Рабочий стол/igtruve/m1_sorted.txt')
b=a.readlines
b=list(map(int,a))
st=time.time()
for i in range (len(b)-1):
    for j in range(i+1, len(b)):
        if b[i]>b[j]:
            b[i], b[j]=b[j], b[i]
fin=time.time()
print(round(fin-st)*1000)
print(st)
print(fin)

a=open('/home/student/Рабочий стол/igtruve/m2_reverse.txt')
b=a.readlines
b=list(map(int,a))
st=time.time()
for i in range (len(b)-1):
    for j in range(i+1, len(b)):
        if b[i]>b[j]:
            b[i], b[j]=b[j], b[i]
fin=time.time()
print(round(fin-st)*1000)
print(st)
print(fin)


a=open('/home/student/Рабочий стол/igtruve/m3_shuffle.txt')
b=a.readlines
b=list(map(int,a))
st=time.time()
for i in range (len(b)-1):
    for j in range(i+1, len(b)):
        if b[i]>b[j]:
            b[i], b[j]=b[j], b[i]
fin=time.time()
print(round(fin-st)*1000)
print(st)
print(fin)
